<div>
    <h2 data-translate="divinationApp.sancai.home.title">Sancais</h2>
    <jhi-alert></jhi-alert>
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-4 no-padding-left">
                <button class="btn btn-primary" ui-sref="sancai.new" >
                    <span class="glyphicon glyphicon-plus"></span>
                    <span class="hidden-xs-down"  data-translate="divinationApp.sancai.home.createLabel">
                        Create new Sancai
                    </span>
                </button>
            </div>
            <div class="col-xs-8 no-padding-right">
                <form name="searchForm" class="form-inline">
                    <div class="input-group pull-right" >
                        <input type="text" class="form-control" ng-model="vm.searchQuery" id="searchQuery" placeholder="{{ 'divinationApp.sancai.home.search' | translate }}">
                        <span  class="input-group-btn width-min" >
                            <button class="btn btn-info" ng-click="vm.search(vm.searchQuery)">
                                <span class="glyphicon glyphicon-search"></span>
                            </button>
                        </span>
                        <span class="input-group-btn width-min" ng-if="vm.currentSearch">
                            <button class="btn btn-info" ng-click="vm.clear()">
                                <span class="glyphicon glyphicon-trash"></span>
                            </button>
                        </span>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr>
                    <th><span data-translate="global.field.id">ID</span></th>
                    <th><span data-translate="divinationApp.sancai.title">Title</span></th>
                    <th><span data-translate="divinationApp.sancai.yy">Yy</span></th>
                    <th><span data-translate="divinationApp.sancai.jx">Jx</span></th>
                    <th><span data-translate="divinationApp.sancai.content">Content</span></th>
                    <th><span data-translate="divinationApp.sancai.jcy">Jcy</span></th>
                    <th><span data-translate="divinationApp.sancai.jx1">Jx 1</span></th>
                    <th><span data-translate="divinationApp.sancai.cgy">Cgy</span></th>
                    <th><span data-translate="divinationApp.sancai.jx2">Jx 2</span></th>
                    <th><span data-translate="divinationApp.sancai.rjgx">Rjgx</span></th>
                    <th><span data-translate="divinationApp.sancai.jx3">Jx 3</span></th>
                    <th><span data-translate="divinationApp.sancai.xg">Xg</span></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="sancai in vm.sancais track by sancai.id">
                    <td><a ui-sref="sancai-detail({id:sancai.id})">{{sancai.id}}</a></td>
                    <td>{{sancai.title}}</td>
                    <td>{{sancai.yy}}</td>
                    <td>{{sancai.jx}}</td>
                    <td>{{sancai.content}}</td>
                    <td>{{sancai.jcy}}</td>
                    <td>{{sancai.jx1}}</td>
                    <td>{{sancai.cgy}}</td>
                    <td>{{sancai.jx2}}</td>
                    <td>{{sancai.rjgx}}</td>
                    <td>{{sancai.jx3}}</td>
                    <td>{{sancai.xg}}</td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                            <button type="submit"
                                    ui-sref="sancai-detail({id:sancai.id})"
                                    class="btn btn-info btn-sm">
                                <span class="glyphicon glyphicon-eye-open"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.view"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="sancai.edit({id:sancai.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-pencil"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.edit"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="sancai.delete({id:sancai.id})"
                                    class="btn btn-danger btn-sm">
                                <span class="glyphicon glyphicon-remove-circle"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.delete"></span>
                            </button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
